home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / menus / mxmnu241.zip / MARXREAD.ME < prev    next >
Text File  |  1993-01-01  |  18KB  |  718 lines

  1. Version 2.39
  2.  
  3. 06-22-92
  4.  
  5. Did some serious internal cleanup and I'd like to think everything works
  6. better but if there is anything that doesn't work that used to, let me
  7. know and I'll fix it.
  8.  
  9. I'm in the process of expanding the marxmenu syntax allowing you to do
  10. things that you couldn't do before. You can now return Arrays as results
  11. from procedures.
  12.  
  13.  Example:
  14.    var X
  15.  
  16.    X = Test
  17.  
  18.    Procedure Test
  19.    var Z
  20.       ReadTextFile ('MARX.BAT',Z)
  21.       Return Z
  22.    EndProc
  23.  
  24. I've also improved the Novell menu translator so that it works better
  25. with nasty menus.
  26.  
  27. 07-01-92
  28.  
  29. Made a modification to be compatible with Software Carousel from Soft
  30. Logic. MarxMenu will now find the master environment under Carousel and
  31. it will read that TaskNumber and create unique batch file names under
  32. each window.
  33.  
  34. The LockWord feature can now be used with the UseNovPassword feature. If
  35. both are used then either the novell password or the lockword will
  36. unblank the screen. This allows you to create a master password that
  37. only the supervisor knows so that the supervisor can unlock anyones
  38. screen.
  39.  
  40. 07-13-92
  41.  
  42. MarxMenu can now read and write the CMOS ram and the battery backed up
  43. clock.
  44.  
  45. CMOS (Number) : Number
  46. CMOS allows to to read and write the CMOS ram on the clock chip.
  47.  
  48.  Example:
  49.     Writeln CMOS(16)
  50.     CMOS(16) = $42
  51.  
  52.  
  53. NovUsedVolumeSpace (Path) : Number
  54. Returns the used volume space of Path.
  55.  
  56.  Example:
  57.    Writeln NovUsedVolumeSpace('F:')
  58.  
  59.  
  60. ReadSqDirectory (Path,2DArray)
  61. ReadSqDirectory works like ReadDirectory but rather than just returning
  62. the file name it return all the information about the file in a 2
  63. dimensional array.  The fields of the array are as follows:
  64.  
  65.  1 - Name
  66.  2 - Date last Updated
  67.  3 - Size
  68.  4 - Attributes
  69.  
  70. Under Netware there are several other fields:
  71.  
  72.  5 - Date Created
  73.  6 - Date last Accessed
  74.  7 - Date last Archived
  75.  8 - Owner
  76.  
  77.  Example:
  78.  Var X Y
  79.  ReadSqDirectory('*.EXE',X)
  80.  Writeln 'Listing File Name, Date Last Accessed, and Size.'
  81.  Loop X
  82.     Y = LoopIndex
  83.     Writeln X[Y,1] ' ' DateString(X[Y,6]) ' ' X[Y,3]
  84.  EndLoop
  85.  
  86.  
  87. DiskType (Drive) : String
  88. DiskType returns the type of disk of a drive letter. Types recognized
  89. are:
  90.  
  91.  FLOPPY360
  92.  FLOPPY720
  93.  FLOPPY12
  94.  FLOPPY14
  95.  RAMDISK
  96.  SUBST
  97.  HARDDISK
  98.  BERNOULI
  99.  NOVELL
  100.  UNKNOWN
  101.  
  102.  Example
  103.  Writeln DiskType('F')
  104.  
  105.  
  106. 08-06-92
  107.  
  108. ReadlnAsc (File,Array)
  109. ReadlnAsc reads a single line from a comma delimited Ascii file and
  110. breaks the fields out into an array. All fields in quotes are considered
  111. strings. If the field is just comma delimited and numeric then it is
  112. converted to a number. If it has a decimal point then it is converted to
  113. a real number.
  114.  
  115. 08-18-92
  116.  
  117. In addition to the SetEnv and ReadEnv commands, MarxMenu now can address
  118. environment variables as if they were local variables.
  119.  
  120.  Example:
  121.    Writeln %PATH%
  122.    %PATH% = 'C:\;C:\DOS;'
  123.  
  124. ===============================================================
  125.  
  126. Version 2.40
  127.  
  128. 09-16-92
  129.  
  130. Well since I rolled over to 2.4 I decided to do something special a make
  131. a semi-major leap forward. I'm added modem communication features to
  132. MarxMenu. My intention is eventually to use MarxMenu for ny BBS software
  133. instead of TBBS which has been nothing but grief.
  134.  
  135. So far I have XModem, YModem, ZModem anf Kermit but I'm not done with
  136. them so I'm not going to document them yet.
  137.  
  138.  
  139. ComPort : Number
  140. Sets or reads the port that communication commands will effect.
  141.  
  142.  Example:
  143.    ComPort = Com1
  144.    Writeln ComPort
  145.  
  146.  
  147. ComInitPort (Baud,DataBits,Parity,StopBits)
  148. Initializes the ComPort. This must be run first before any other comport
  149. command is executed.
  150.  
  151.  Example:
  152.    ComInitPort(38400,8,'N',1)
  153.  
  154. ComBaud : Number
  155. Reads or sets the baud rate. Range from 110 to 115,000 baud.
  156.  
  157.  Example:
  158.    ComBaud = 9600
  159.    Writeln ComBaud
  160.  
  161.  
  162. ComDataBits : Number
  163. Reads or sets the number of data bits. Range 5 - 8 bits.
  164.  
  165.  Example:
  166.    ComDataBits = 8
  167.    Writeln ComDataBits
  168.  
  169.  
  170. ComStopBits : Number
  171. Reads or sets the number of stop bits. Range 1 - 2 bits.
  172.  
  173.  Example:
  174.    ComStopBits = 1
  175.    Writeln ComStopBits
  176.  
  177.  
  178. ComParity : String
  179. Reads or sets the parity.
  180.  
  181.  N - None
  182.  E - Even
  183.  O - Odd
  184.  M - Mark
  185.  S - Space
  186.  
  187.  Example:
  188.    ComParity = 'E'
  189.    Writleln ComParity
  190.  
  191. ComDone
  192. UnInitializes the port. Dealocates memory used by ComInitPort and
  193. restores interupt vectors.
  194.  
  195.  
  196. ComDTR (On/Off)
  197. Turns DTR (Data Terminal Ready) on or off. Setting DTR to off can be
  198. used to hang up a modem.
  199.  
  200.  Example:
  201.    ComDTR Off
  202.  
  203.  
  204. ComRTS (On/Off)
  205. Turns RTS (Request to Send) on and off.
  206.  
  207.  Example:
  208.    ComRTS On
  209.  
  210.  
  211. ComCharReady : Boolean
  212. Tests to see if a character has been received in the input buffer.
  213.  
  214.  Example:
  215.    if ComCharReady then Ch = ComReadChar
  216.  
  217.  
  218. ComReadChar : String
  219. Reads one character from the com port or input buffer. It will wait up
  220. to ComReadTimeout ticks for the character. If no character is received
  221. then ComTimeOut is set to True.
  222.  
  223.  Example:
  224.    Ch = ComReadChar
  225.  
  226.  
  227. ComReadln : String
  228. Reads a line from the com port or input buffer. It will wait up to
  229. ComReadTimeout ticks for the character. If no character is received then
  230. ComTimeOut is set to True.
  231.  
  232.  Example:
  233.    if ComReadln = 'OK' then
  234.  
  235.  
  236. ComWrite (String)
  237. Writes a string to the com port with no CR.
  238.  
  239.  Example:
  240.    ComWrite '+++'
  241.  
  242.  
  243. ComWriteln (String)
  244. Writes a string to the com port with CR.
  245.  
  246.  Example:
  247.    ComWriteln 'ATTD 1-417-866-1665'
  248.  
  249.  
  250. ComTimeout : Boolean
  251. ComTimeout is set to True if the last command ended in a timeout error.
  252.  
  253.  Example:
  254.    if ComTimeout then Writeln 'Something is stuck!'
  255.  
  256.  
  257. ComReadTimeout : Number
  258. This variable controls the number of timer ticks (18.2 ticks per second)
  259. that a read command will wait to receive data.
  260.  
  261.  Example:
  262.     ComReadTimeout = 36  ;2 seconds
  263.  
  264.  
  265. ComWriteTimeout : Number
  266. This variable controls the number of timer ticks (18.2 ticks per second)
  267. that a write command will wait to send data.
  268.  
  269.  Example:
  270.     ComWriteTimeout = 36  ;2 seconds
  271.  
  272.  
  273. 09-28-92
  274.  
  275. NovShellVersion : String
  276.  
  277. Returns the Novell shell version number.
  278.  
  279.  
  280. 10-19-92
  281.  
  282. Added new syntax option to the Mid string function allowing you to write
  283. to the middle of a string. See the MID function.
  284.  
  285.  
  286. 10-26-92
  287. Added a new internation command.
  288.  
  289. CurrencySymbol : String
  290. Returns the currency symbol based on the country code.
  291.  
  292.  
  293. 11-09-92
  294.  
  295. ComCD : Boolean
  296. Returns the status of the carrier detect line on serial ports.
  297.  
  298. ComRI : Boolean
  299. Returns the status of the ring indicator line on serial ports.
  300.  
  301. ComBreakReceived : Boolean
  302. Returns True if a break signal has been received at the serial port.
  303.  
  304. ComSendBreak
  305. Sends a break signal out the modem.
  306.  
  307. NovBinderyAccess : Number
  308. NovBinderyAccess returns the users bindery access level.
  309.  
  310.  0 - Not logged in.
  311.  1 - Logged in.
  312.  2 - Object Access.
  313.  3 - Supervisor Access.
  314.  
  315.  
  316. WorkString : String
  317. WorkString is a MarxMenu variable that contains the string that Readln
  318. is editing. This string can be accessed by KeyEvent routines so that a
  319. KeyEvent procedure can set what is being entered.
  320.  
  321.  Example:
  322.    WorkString = PickOne(List)
  323.  
  324.  
  325. 11-13-92
  326.  
  327. I changed the syntax on KeyEvent so if you got MarxMenu in the last 4
  328. days and now you get an error on KeyEvent, make a few simple changes.
  329.  
  330. KeyEvent (Key) : Procedure
  331. KeyEvent allows you to assign a procedure to a key so that any time the
  332. key is pressed the procedure is called. Setting a key to Nil clears the
  333. key. This command can be used to create global OnKey.
  334.  
  335.  Example:
  336.     KeyEvent(F1) = loc ShowHelp   ;runs ShowHelp when F1 is pressed
  337.     KeyEvent(F1) = Nil            ;clears F1 key
  338.     Run KeyEvent(F1)              ;executes procedure assigned to F1
  339.  
  340.  
  341. 11-16-92
  342.  
  343. ComReceiveXmodem (FileName)
  344. Receive a file by Xmodem protocol.
  345.  
  346.  Example:
  347.    ComRecieveXmodem 'MXMENU.ZIP'
  348.  
  349.  
  350. ComSendXmodem (FileName)
  351. Send a file by Xmodem protocol.
  352.  
  353.  Example:
  354.    ComSendXmodem 'MXMENU.ZIP'
  355.  
  356.  
  357. ComReceive1kXmodem (FileName)
  358. Receive a file by 1k Xmodem protocol.
  359.  
  360.  Example:
  361.    ComRecieve1kXmodem 'MXMENU.ZIP'
  362.  
  363.  
  364. ComSend1kXmodem (FileName)
  365. Send a file by